package com.scalar.chiptrack.operations.dataentry.actionCommands;
/**
 * User: Murali Krishna Yengala
 * Date: Jul 22, 2005
 * Time: 4:34:29 PM
 */

import com.scalar.chiptrack.ChipTrackExtendedAction;
import com.scalar.chiptrack.commons.Constants;

public class DieBankBinningInfoActionCommandFactory implements Constants{
    private static DieBankBinningInfoActionCommandFactory ourInstance;

    public synchronized static DieBankBinningInfoActionCommandFactory getInstance() {
        if (ourInstance == null) {
            ourInstance = new DieBankBinningInfoActionCommandFactory();
        }
        return ourInstance;
    }

    private DieBankBinningInfoActionCommandFactory() {
    }

    public static ChipTrackExtendedAction getActionCommand( String action)
    {
        if( "dieBankBinningInfo".equalsIgnoreCase( action))
        {
            return new DieBankBinningInfoLoadPartsCommand();
        }
        if( "loadLocations".equalsIgnoreCase( action))
        {
            return new DieBankBinningInfoLoadLocationsCommand();
        }
        if( "loadLots".equalsIgnoreCase( action))
        {
            return new DieBankBinningInfoLoadLotsCommand();
        }
        if( "loadWafers".equalsIgnoreCase( action))
        {
            return new DieBankBinningInfoLoadWafersCommand();
        }
        if( "addMoreWafers".equalsIgnoreCase( action))
        {
            return new DieBankDataEntryAddMoreCommand();
        }
        if( "saveWafers".equalsIgnoreCase( action))
        {
            return new DieBankBinningInfoSaveCommand();
        }
        return null;
    }
}

